import Vue from "vue";
import VueRouter from 'vue-router'
//import VueRouter from "@/utils/GRouter";
import Home from "../views/Home.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home,
  },
  {
    path: "/about",
    name: "About",
    component: () => import("../views/About.vue"),
  },
  {
    path: "/slot-aync",
    name: "SlotAync",
    component: () => import("../views/slot-aync"),
  },
  {
    path: "/apiSet",
    name: "ApiSet",
    component: () => import("../views/ApiSet"),
  },
  {
    path: "/mixin",
    name: "Mixin",
    component: () => import("../views/Mixin"),
  },
  {
    path: "/directive",
    name: "Directive",
    component: () => import("../views/Directive"),
  },
  {
    path: "/plugin",
    name: "Plugin",
    component: () => import("../views/Plugin"),
  },
  {
    path: "/stateData",
    name: "StateData",
    component: () => import("../views/StateData"),
  },
  {
    path: "/confirm",
    name: "Confirm",
    component: () => import("../views/Confirm"),
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
